
        .arch armv6
        .fpu softvfp
        .data

.text
.global _start
        
_start:
        #stmfd sp!, {r11, lr}

        ldr r0, =str
        bl printf

        #ldmfd sp!, {r11, pc}

exit:
        mov r0, $1
        mov r7, $1
        swi #0
        
.data

str:
        .asciz "hello asm\n"

.end        

# arm-linux-as printf2.s -o printf2.o
# arm-linux-ld  -dynamic-linker /lib/ld-uClibc-0.9.33.2.so printf2.o -o printf2 -lc        
